<template>
  <div class="discover">
        <van-cell-group>
            <van-field
                v-model="username"
                required
                clearable
                label="用户名"
                right-icon="question-o"
                placeholder="请输入用户名"
                @click-right-icon="$toast('question')"
            />

            <van-field
                v-model="password"
                type="password"
                label="密码"
                placeholder="请输入密码"
                required
            />
            <van-button type="primary" size="large" @click="tanchu" >登录</van-button>
            <br>
            <br>
            <router-link to="/Enroll">注册</router-link>
            
</van-cell-group>
  </div>
</template>
<script>
export default {
  methods: {
      tanchu(){
          this.$notify('登陆失败');
      }
  }
}
</script>